﻿<%@ Control Language="c#" AutoEventWireup="false" Codebehind="ImgNews.ascx.cs" Inherits="gdlmo.DNN.Modules.ImgNews.ImgNews" %>
<body>
	<div id="demo" style="BACKGROUND: #ffffff; OVERFLOW: hidden; WIDTH: 100%; COLOR: #ffffff; HEIGHT: 150px">
		<table width="100%" height="98" border="0" align="left" cellpadding="0" cellspace="0">
			<tr>
				<td id="demo1" valign="top"><div id="divImgList" runat="server">
					</div>
				</td>
				<td id="demo2"></td>
			</tr>
		</table>
	</div>
	<SCRIPT>
        var speed=30;
        demo2.innerHTML=demo1.innerHTML;
        function Marquee(){
        if(demo2.offsetWidth-demo.scrollLeft<=0)
        demo.scrollLeft-=demo1.offsetWidth;
        else{
        demo.scrollLeft++;
        }
        }
        var MyMar=setInterval(Marquee,speed);
        demo.onmouseover=function() {clearInterval(MyMar)}
        demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
	</SCRIPT>
</body>
